package com.oscarmovie.service;

import java.util.List;

import com.oscarmovie.dao.CalendarDao;
import com.oscarmovie.model.Calendar;
import com.oscarmovie.model.Calendar;

public class CalendarServiceImpl implements CalendarService{
	private CalendarDao calendarDao;

	public void setCalendarDao(CalendarDao calendarDao) {
		this.calendarDao = calendarDao;
	}

	public CalendarDao getCalendarDao() {
		return calendarDao;
	}

	
	public void save(Calendar calendar) {
		calendarDao.save(calendar);
	}

	
	public Calendar load(int id) {
		Calendar calendar =  calendarDao.load(id);
		return calendar;
	}

	
	public List<Calendar> loadAll() {
		return calendarDao.loadAll();
	}
}
